import {http} from '../utils/http'

//获取用户信息
export const getUserInfoAPI=()=>{
    return http({
        method: 'GET',
        url: '/user'
    })
}
//修改用户信息
export const updateUserInfoAPI=(data)=>{
    return http({
        method: 'PUT',
        url: '/user',
        data
    })
}